import Home from '../views/Home.jsx'
import NotFound from '../views/NotFound.jsx'
import Main from '../views/Main.jsx'
import Goods from '../views/Goods.jsx'
import Order from '../views/Order.jsx'
import Store from '../views/Store.jsx'
import Data from '../views/Data.jsx'
import User from '../views/User.jsx'
import Login from '../views/Login.jsx'

export const routeConfig = [
  {
    path: '/login',
    element: <Login />,
    exact: true
  },
  {
    path: "/",
    element: <Home />,
    exact: true,
    children: [
      {
        path: "",
        element: <Main />,
        exact: true,
      },
      {
        path: "goods",
        element: <Goods />,
        exact: true,
      },
      {
        path: "order",
        element: <Order />,
        exact: true,
      },
      {
        path: "store",
        element: <Store />,
        exact: true,
      },
      {
        path: "data",
        element: <Data />,
        exact: true,
      },
      {
        path: "user",
        element: <User />,
        exact: true
      },
    ]
  },
  {
    path: '*',
    element: <NotFound />,
  }

]